import State from '../../../Base/State'
import { StateMachine } from '../../../Base/StateMachine'
import { SPIKES_COUNT_ENUM } from '../../../Enums'
import SpikesSubStateMachine from './SpikesSubStateMachine'

const BASE_PATH = 'texture/spikes/spikesfour'

export default class SpikesFourSubStateMachine extends SpikesSubStateMachine {
  constructor(fsm: StateMachine) {
    super(fsm)
    this.stateMachines.set(SPIKES_COUNT_ENUM.ZERO, new State(fsm, `${BASE_PATH}/zero`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.ONE, new State(fsm, `${BASE_PATH}/one`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.TWO, new State(fsm, `${BASE_PATH}/two`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.THREE, new State(fsm, `${BASE_PATH}/three`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.FOUR, new State(fsm, `${BASE_PATH}/four`))
    this.stateMachines.set(SPIKES_COUNT_ENUM.FIVE, new State(fsm, `${BASE_PATH}/five`))
  }
}
